import { configureStore } from "@reduxjs/toolkit";

import userReducer from './features/user'
import conversationReducer from './features/conversation'
import messageReducer from './features/message'
import groupReducer from './features/group'
import groupMemberReducer from './features/group_member'
import friendReducer from './features/friend'
import otherUserReducer from './features/otherUser'
import menusSlice from './features/menus'

export default configureStore({
  middleware:getDefaultMiddleware => getDefaultMiddleware({
    serializableCheck:false
 }),
  reducer: {
    user: userReducer,
    conversation: conversationReducer,
    message: messageReducer,
    group: groupReducer,
    groupMember: groupMemberReducer,
    friend: friendReducer,
    otherUser: otherUserReducer,
    menus: menusSlice,
  },
});